

import java.util.Scanner;
import java.util.concurrent.locks.Condition;

public class PersonManage {
	public static void main(String[] args) { 
		ManagePerson mvp=new ManagePerson();
		System.out.println("----欢迎进入英雄管理系统-----");
		//声明 scanner 
		Scanner scanner=new Scanner(System.in);
		int num;
		//声明变量0
		do {
			//变量接收录入按键
			System.out.println("1 显示所有英雄 2 添加 3 修改1 4 删除(id) 5 模糊查询 6 对象排序 7 修改2 8 删除(姓名) 0 退出");
			System.out.println("请输入功能序号:");
			num=scanner.nextInt();
			switch (num) {
			case 1:
				mvp.showALL();
				break;
			case 2:
				mvp.addPerson();
				break;
			case 3:
				mvp.personUpdate();
				break;
			case 4:
				mvp.deletePerson();
				break;
			case 5:
				mvp.fuzzyQuery();
				break;
			case 6:
				mvp.objectsort();
				break;
			case 7:
				mvp.personUpdate1();
				break;
			case 8:
				mvp.deletePerson1();
				break;
			default:
				System.out.println("输入按键错误，请重新输入");
				break;
			}
		} while (num!=0);
		System.out.println("谢谢使用!");
	}
}
